This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Denise Elremaroden 26.Nov.02 11:15 AM a Web browser Notes Client6.0All Platforms
Testing some of my R5 databases on R6 server and client I came accross the following lotusscript problem:
I have a Form with a postopen script where I get the notesuidocument from the notesuiworkspace and eventually the background document to set default values etc.
This works as it allways has when the form or a document with this form is opened in its own window.
But if I open this form using a dialogbox from an lotusscript agent, getting the uidocument from uiworkspace in the postopen script fails!
Is this an R6 bug?
Form Postopen script:
Dim uiw As New notesuiworkspace
Dim uidoc As notesuidocument
Dim doc As notesdocument
Set uidoc=uiw.currentdocument
'uidoc is nothing when form opened in dialogbox
Set doc=uidoc.document
agent script opening the form:
Dim ses as new notessession
Dim db as notesdatabase
Dim doc as notesdocument
Dim uiw as new notesuiworkspace
Dim res as integer
Set db=ses.currentdatabase
Set doc=db.createdocument
res=uiw.DialogBox( "frmDlgNewStatus", True, True, False, False, False, False, "New status", doc)